From: Stefan Kangas Date: Thu, 20 Feb 2025 10:14:35 +0000 (+0100) Subject: Sync build-aux/update-copyright from Gnulib X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~283 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=ac7f2054b52d5105007b004dd229674e58472f7c;p=emacs.git Sync build-aux/update-copyright from Gnulib * build-aux/update-copyright: Copy from Gnulib. This fixes a bug where troff markers were introduced in ChangeLog files. (Do not merge to master.) --- diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 413a0c4a731..124c7d2e423 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -47,8 +47,8 @@ # Each file's copyright statement must be formatted correctly in # order to be recognized. For example, each of these is fine: # -# Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software -# Foundation, Inc. +# Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software Foundation, +# Inc. # # # Copyright (C) 1990-2005, 2007-2009 Free Software # # Foundation, Inc. @@ -138,7 +138,7 @@ eval 'exec perl -wSx -0777 -pi "$0" "$@"' if 0; -my $VERSION = '2024-01-15.18:30'; # UTC +my $VERSION = '2025-01-01.07:36'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -235,7 +235,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/cg) else { my $ndash = ($ARGV =~ /\.tex(i(nfo)?)?$/ ? "--" - : $ARGV =~ /\.(\d[a-z]*|man)$/ ? "\\(en" + : $ARGV =~ /\.(\d[a-z]*|man)(\.in)?$/ && $ARGV !~ /ChangeLog\./ ? "\\(en" : "-"); $stmt =~ @@ -298,7 +298,7 @@ if (!$found) # coding: utf-8 # mode: perl # indent-tabs-mode: nil -# eval: (add-hook 'before-save-hook 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp nil t) # time-stamp-line-limit: 200 # time-stamp-start: "my $VERSION = '" # time-stamp-format: "%:y-%02m-%02d.%02H:%02M"